package stc.skymobi.netty.handler.codec.memcached.bean.request;

import stc.skymobi.bean.bytebean.annotation.ByteField;

public class StorageRequest extends BinaryRequestHeader {

    @ByteField(index = 9,description = "")
    private int flags;

    @ByteField(index = 10,description = "")
    private int expiration;

    @ByteField(index = 11,description = "",charset = "UTF-8")
    private String key;

    @ByteField(index = 12,description = "",fixedLength = 0)
    private byte[] value;

    public int getFlags() {
        return flags;
    }

    public void setFlags(int flags) {
        this.flags = flags;
    }

    public int getExpiration() {
        return expiration;
    }

    public void setExpiration(int expiration) {
        this.expiration = expiration;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public byte[] getValue() {
        return value;
    }

    public void setValue(byte[] value) {
        this.value = value;
    }
}
